import Request from '@/utils/request/request-util';

/**
 * 设备类型-API接口
 *
 * @author PANL
 * @date 2023/12/01 14:34
 */
export class EquipmentClassApi {

  /**
   * 获取分页列表
   *
   * @author PANL
   * @date 2023/12/01 14:34
   */
  static findPage(params) {
    return Request.getAndLoadData('/equipmentClass/page', params);
  }

  /**
   * 添加设备类型
   *
   * @author PANL
   * @date 2023/12/01 14:34
   */
  static add(params) {
    return Request.post('/equipmentClass/add', params);
  }

  /**
   * 编辑设备类型
   *
   * @author PANL
   * @date 2023/12/01 14:34
   */
  static edit(params) {
    return Request.post('/equipmentClass/edit', params);
  }

  /**
   * 删除单个设备类型
   *
   * @author PANL
   * @date 2023/12/01 14:34
   */
  static delete(params) {
    return Request.post('/equipmentClass/delete', params);
  }

  /**
   * 删除批量设备类型
   *
   * @author PANL
   * @date 2023/12/01 14:34
   */
  static batchDelete(params) {
    return Request.post('/equipmentClass/batchDelete', params);
  }

  /**
   * 设备类型详情
   *
   * @author PANL
   * @date 2023/12/01 14:34
   */
  static detail(params) {
    return Request.getAndLoadData('/equipmentClass/detail', params);
  }

}